import request from "@/utils/request";

/**
 * 获取验证码
 * @returns Promise
 */
export function getCaptchaImageUrl() {
    return request({
        method: 'get',
        url: '/captchaImage'
    })
}

/**
 * 登录
 * @param {any} data 登录数据
 * @param {string} data.username 用户名
 * @param {string} data.password 密码
 * @returns Promise
 */
export async function loginUrl(data: any) {
    return request({
        url: '/login',
        method: 'post',
        data: data
    })
}


